<template>
  <div id="app">
    <router-view></router-view>
    <TabBar>
      <TabBarItem path="home" activeColor="green">
        <img src="./assets/img/tabbar/home.png" slot="item-icon" />
        <img
          src="./assets/img/tabbar/home_select.png"
          slot="item-icon-active"
        />
        <div slot="item-text">首页</div>
      </TabBarItem>
      <TabBarItem path="category" activeColor="red">
        <img src="./assets/img/tabbar/classify.png" slot="item-icon" />
        <img
          src="./assets/img/tabbar/classify_select.png"
          slot="item-icon-active"
        />
        <div slot="item-text">分类</div>
      </TabBarItem>
      <TabBarItem path="cart" activeColor="red">
        <img src="./assets/img/tabbar/cart.png" slot="item-icon" />
        <img
          src="./assets/img/tabbar/cart_select.png"
          slot="item-icon-active"
        />
        <div slot="item-text">购物车</div>
      </TabBarItem>
      <TabBarItem path="profile" activeColor="red">
        <img src="./assets/img/tabbar/mine.png" slot="item-icon" />
        <img
          src="./assets/img/tabbar/mine_select.png"
          slot="item-icon-active"
        />
        <div slot="item-text">我的</div>
      </TabBarItem>
    </TabBar>
  </div>
</template>

<script>
// eslint-disable-next-line quotes
import TabBar from "./components/tabbar/TabBar"
import TabBarItem from './components/tabbar/TabBarItem';
export default {
  name: 'App',
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style>
/* 导入全局样式*/
@import url("./assets/css/base.css");
</style>
